package com.jm.utils;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesHelper {
	public static Properties Load(String strPro) throws Exception {
		return Load(null, strPro);
	}

	public static Properties Load(Properties pro, String strPro) throws Exception {
		if (pro == null) {
			pro = new Properties();
		}
		
		InputStream in = new ByteArrayInputStream(strPro.getBytes("UTF-8"));
		pro.load(in);
		return pro;
		
		
	}
}
